#Import modules
import sys
import numpy as np
sys.path.append(r'C:\Users\os4875st\.py\py_DNA_waves')

#Personal modules
import functions_wave_general as wg

#Choose experiment ID, see the list of experiments for the range of selection
expIDs = ['2021-06-16_lambda_400nguL_1_200_optosplit'] 

#Pressure value(s) to run
pressures = np.array([25,50,100,200,500,1000])

#Magnification to run, select between 4x, 10x, 20x and 100x
mags = ['10x'] 

#General Settings Dictionary
settings_general = wg.get_default_settings_general(mode = 'polarization', mode_pixelation='dead_zone')
settings_general['frame_range'] = [0,0]

settings_general['show_imgs'] = True #Display images as the code runs
settings_general['show_imgs_preprocessing'] = True
settings_general['save_imgs'] = True #Save results to filem

#Dictionary for specific settings
dict_parameters_fun_specific = {
    'n_frames_limit': 500
}

#Run function
list_v = wg.iterate_exp_list(settings_general, expIDs, dict_parameters_fun_specific, pressures=pressures, mags=mags,func='array_pixelation')
